import request from '@/utils/request'

// 查询设备型号组合列表
export function listDeviceModelCompose(query) {
  return request({
    url: '/genius/platform-device-compose/list',
    method: 'get',
    params: query
  })
}

// 查询设备型号组合详情
export function getDeviceModelComposeDetail(id) {
  return request({
    url: '/genius/platform-device-compose/' + id,
    method: 'get'
  })
}

// 新增设备型号组合
export function addDeviceModelCompose(data) {
  return request({
    url: '/genius/platform-device-compose',
    method: 'post',
    data: data
  })
}

// 修改设备型号组合
export function updateDeviceModelCompose(data) {
  return request({
    url: '/genius/platform-device-compose',
    method: 'put',
    data: data
  })
}
// 导出设备型号组合
export function exportDeviceModelCompose(data) {
  return request({
    url: '/genius/platform-device-compose/export',
    method: 'post',
    data: data
  })
}

// 逻辑删除设备型号信息
export function delDeviceModelCompose(ids) {
  return request({
    url: '/genius/platform-device-compose/' + ids   ,
    method: 'delete'
  })
}
